import { Component, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-header',
  templateUrl: './header.component.html',
  styles: []
})
export class HeaderComponent implements OnInit {
  @Output()
  openSidebarBtnClicked: EventEmitter<void> = new EventEmitter<void>();
  @Output()
  toggleThemeBtnClicked: EventEmitter<boolean> = new EventEmitter<boolean>();
  constructor() { }

  ngOnInit() {
  }
  openSidebar(e) {
    this.openSidebarBtnClicked.emit();
  }
  toggleTheme(e) {
    this.toggleThemeBtnClicked.emit(e);
  }
}
